export const PageItem = {
  title: '风险和并发症信息评估表',
  commUrl: 'https://anfine.huasun-healthcare.com:80/api/assess_risk/assessRiskInfo',
}

// 风险评估信息字段配置
export const assessRiskFields = {
  assessid: { show: true, label: '全面评估ID', edit: true, type: 'text', required: true },
  name: { show: true, label: '姓名', edit: true, type: 'text', readonly: false, required: true },
  idNumber: { show: true, label: '证件号码', edit: true, type: 'text', readonly: false, required: true },
  
  // 风险类型相关字段
  bbdDsc: { show: true, label: '膀胱功能障碍', edit: true, type: 'textarea' },
  downDsc: { show: true, label: '跌倒/坠床', edit: true, type: 'textarea' },
  hypDsc: { show: true, label: '坠积性肺炎', edit: true, type: 'textarea' },
  malnDsc: { show: true, label: '营养不良', edit: true, type: 'textarea' },
  mdmDsc: { show: true, label: '肌力下降/肌肉萎缩', edit: true, type: 'textarea' },
  piDsc: { show: true, label: '压疮', edit: true, type: 'textarea' },
  stdDsc: { show: true, label: '感染性/传染性疾病风险', edit: true, type: 'textarea' },
  vteDsc: { show: true, label: '深静脉血栓或VTE', edit: true, type: 'textarea' },
  
  // Braden量表相关字段
  bradenFeel: { show: true, label: 'Braden量表-感知能力评分', edit: true, type: 'number', min: 1, max: 4 },
  bradenMove: { show: true, label: 'Braden量表-活动能力评分', edit: true, type: 'number', min: 1, max: 4 },
  bradenSum: { show: true, label: 'Braden量表-总分', edit: true, type: 'number', min: 6, max: 23 },
  bradenLevel: { show: true, label: 'Braden量表-评估等级', edit: true, type: 'picker', dictCode: 'braden_level' },
  bradenOther: { show: true, label: 'Braden量表-其他', edit: true, type: 'textarea' },
  
  // Morse量表相关字段
  morseDown: { show: true, label: 'Morse量表-跌倒史评分', edit: true, type: 'number', min: 0, max: 25 },
  morseIvgtt: { show: true, label: 'Morse量表-静脉输液评分', edit: true, type: 'number', min: 0, max: 20 },
  morseSum: { show: true, label: 'Morse量表-总分', edit: true, type: 'number', min: 0, max: 125 },
  morseLevel: { show: true, label: 'Morse量表-评估等级', edit: true, type: 'picker', dictCode: 'morse_level' },
  morseOther: { show: true, label: 'Morse量表-其他', edit: true, type: 'textarea' },
  
  // 其他字段
  other: { show: true, label: '其他', edit: true, type: 'textarea' },
  note: { show: true, label: '备注', edit: true, type: 'textarea' },
  valid: { show: true, label: '有效标志', edit: true, type: 'picker', dictCode: 'valid_flag' },
  
  // 系统字段
  createTime: { show: true, label: '创建时间', edit: false, type: 'datetime' },
  createBy: { show: true, label: '创建人', edit: false, type: 'text' },
  updateTime: { show: true, label: '修改时间', edit: false, type: 'datetime' },
  updateBy: { show: true, label: '修改人', edit: false, type: 'text' },
  id: { show: false, label: '主键ID', edit: false, type: 'text' }
}
